<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    	               "http://www.w3.org/TR/html4/loose.dtd">

<html>
<jsp:useBean id="user" scope="request" class="model.User" />
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Khalid Albakr Assignemnt 4</title>
</head>
<body>
	<%
		String name = user.getName(), email = user.getEmail(), password =  user.getPassword(), login = user.getLoginName();
		if (name == null){
			name ="";
		}
		if (email == null){
			email ="";
		}
		if (login == null){
			name ="";
		}
		if (password == null){
			password ="";
		}
	%>
	<br>
	<h3>Pleae fill out the form using your information to register you
		in the system</h3>
	<form action="RegisterServlet" method="post">
		<table>
			<tr>
				<td>Name:</td>
				<td><input type="text" name="name" value="<%= name%>"></td>
			</tr>
			<tr>
				<td>Email:</td>
				<td><input type="text" name="email" value="<%= email%>"></td>
			</tr>
			<tr>
				<td>Login Name:</td>
				<td><input type="text" name="login" value="<%= login%>"></td>
			</tr>
			<tr>
				<td>Password:</td>
				<td><input type="password" name="password" value="<%= password%>"></td>
			</tr>

			<tr>
				<td><input type="submit" name="" value="Submit"></td>
			</tr>
		</table>

	</form>

</body>
</html>
